import request from '@/utils/request'

export function page(name,stuId,edu,classId,page,pageSize) {
  return request({
    url: '/stu?name='+name+'&stuId='+stuId+'&edu='+edu+'&classId='+classId+'&page='+page+'&pageSize='+pageSize,
    method: 'get'
  })
}

export function deleteById(id) {
  return request({
    url: '/stu/'+id,
    method: 'delete',
  })
}

export function add(emp) {
  return request({
    url: '/stu',
    method: 'post',
    data: emp
  })
}

export function update(dept) {
  return request({
    url: '/stu',
    method: 'put',
    data: dept
  })
}

export function selectById(id) {
  return request({
    url: '/stu/'+id,
    method: 'get',
  })
}

export function genderCount() {
  return request({
    url: '/stu/gender',
    method: 'get'
  })
}

export function maleEduCount() {
  return request({
    url: '/stu/maleEdu',
    method: 'get'
  })
}

export function femaleEduCount() {
  return request({
    url: '/stu/femaleEdu',
    method: 'get'
  })
}

export function classCount() {
  return request({
    url: '/stu/class',
    method: 'get'
  })
}